#include "Material.h"

CMaterial::CMaterial(void)
{
    for (int i = 0; i < 3; i++)
    {
		m_Ambient[i] = 0.3f;
		m_Diffuse[i] = 0.5f;
		m_Specular[i] = 0.8f;
    }

	m_Alpha = 100.0f;
}

CMaterial::CMaterial(CLightIntensity& _amb, CLightIntensity& _diff, CLightIntensity& _spec)
{
	m_Ambient[0] = _amb.GetRed();
	m_Ambient[1] = _amb.GetGreen();
	m_Ambient[2] = _amb.GetBlue();

	m_Diffuse[0] = _diff.GetRed();
	m_Diffuse[1] = _diff.GetGreen();
	m_Diffuse[2] = _diff.GetBlue();

	m_Specular[0] = _spec.GetRed();
	m_Specular[1] = _spec.GetGreen();
	m_Specular[2] = _spec.GetBlue();

	m_Alpha = 100.0f;
}